<%-- 
    Document   : error
    Created on : 2012. 4. 13, 오후 4:11:39
    Author     : jeong
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page import = "javax.servlet.ServletException" %>
<%@ page isErrorPage = "true" %>

<html>
<head><title>에러 발생</title></head>
<body>

에러가 발생하였습니다!!<br><br>
에러 메시지: <%= exception.getMessage() %>
<p>
<%
    Throwable rootCause = null;
    if (exception instanceof ServletException) {
        rootCause = ((ServletException)exception).getRootCause();
    }
    if (rootCause != null) {
        do {
%>
예외 추적: <%= rootCause.getMessage() %><br>
<%
            rootCause = rootCause.getCause();
        } while(rootCause != null);
    }
%>
</body>
</html>
